/*
 * @Author: huCheng Li
 * @Date: 2023-10-21 09:57:58
 * @description: 
 * @LastEditTime: 2023-10-21 18:24:49
 * @FilePath: \三阶段项目\pili-pili-app\src\store\common.ts
 */
import { defineStore } from 'pinia'
import { initState } from './persiste'
let _initState = initState()

const useCommonStore = defineStore(
  'pilipili',
  {
    state(): CommonStore {
      return {
        token: _initState.token || '',
        userInfo: _initState.userInfo || {}
      }
    }
  }
)
export default useCommonStore
